package com.test.prolenders.activity_prolenders;

import android.os.Bundle;
import android.widget.TextView;

import com.test.prolenders.R;
import com.test.prolenders.base_prolenders.BaseActivity_prolenders;
import com.test.prolenders.config_prolenders.Constant_prolenders;
import com.test.prolenders.dialog_prolenders.CustomerServiceDialog_prolenders;
import com.test.prolenders.dialog_prolenders.LogoutDialog_prolenders;
import com.test.prolenders.util_prolenders.http_prolenders.HttpUtil_prolenders;

public class SettingActivity_prolenders extends BaseActivity_prolenders {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting_prolenders);
        page = "SETTING";

        findViewById(R.id.as_ib_back).setOnClickListener(v -> onBackPressed());
        findViewById(R.id.as_ib_customerservice).setOnClickListener(v -> new CustomerServiceDialog_prolenders(this).show());

        TextView versionTv = findViewById(R.id.as_tv_version);
        versionTv.append(" "+ Constant_prolenders.APP_VERSION_NAME);

        findViewById(R.id.as_btn_logout).setOnClickListener(v -> {
            HttpUtil_prolenders.getInstance().saveBuriedPoint(page,"LOGOUT_CLICK","");
            new LogoutDialog_prolenders(this).show();
        });

    }
}